package com.company.beauty.nasa.elasticsearch.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.io.Serializable;

/**
 * <p>配置信息</p>
 *
 * @author Lionel Lee
 * @version 1.0: ElasticsearchProperties.java
 * @date 2021/5/9  19:35 星期日
 */
@ConfigurationProperties(prefix = "elasticsearch")
@Data
public class ElasticsearchProperties implements Serializable {

    private static final long serialVersionUID = 5021910949734822032L;
    /**
     * 主机
     */
    protected String endpoints;
    /**
     * 用户名
     */
    protected String username;
    /**
     * 密码
     */
    protected String password;

    /**
     *  超时时间
     */
    private Long     socketTimeout;
}
